export default {
	name: 'activate',
	mounted: function() {

	},
	methods: {
		//跳转到登录页面
		redirectLogin() {
			this.axios.hPost("/api/register/activate", {
				id: this.$route.query.id,
				checkCode: this.$route.query.checkCode
			}, (response) => {
				if (response.success) {
					this.$router.push('login');
				} else {
					this.$message.error(response.msg);
				}
			});
		}
	},
	data() {
		return {

		}
	}
}
